package com.payment.common.utils;

/**
 * 短信API
 */

public class SendMessageUtils {

        public static boolean isPhone(String phone) {
            if (phone.length() != 11) {
                return false;
            }
            return true;
        }

        public static String createRandomVcode() {
            //验证码
            String vcode = "";
            for (int i = 0; i < 6; i++) {
                vcode = vcode + (int) (Math.random() * 9);
            }
            return vcode;
        }
}
